package IOC.C1_beans.C1_3_beansDefinition.C1_3_1_beansBeanname;

import IOC.C1_beans.C1_2_beansBasics.C1_2_3_beansFactoryClient.PetStoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

/**
 * Desc:&emsp;&ensp;
 *
 * @author 李渊&emsp;liyuan7@yusys.com.cn
 * @version 1.0
 * @since V4.3&emsp;2022/6/2
 */
public class Root {

    public static void main(String[] args) {
        // create and configure beans
        ApplicationContext context = new ClassPathXmlApplicationContext("IOC/C1_beans/C1_3_beansDefinition/C1_3_1_beansBeanname/beans.xml");
        Service service = context.getBean("service3",Service.class);
        System.out.println(service.getName());
    }
}
